FROM python:3.6

MAINTAINER XiongChao <cheerxiong0823@163.com>

WORKDIR /code/lamp
COPY . .

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo 'Asia/Shanghai' > /etc/timezone \
    && pip install --no-cache-dir --upgrade pip -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \
    && pip install uwsgi -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com\
    && pip install -r requirements.txt -i  http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

EXPOSE 8080

CMD ["uwsgi","--ini", "uwsgi.ini"]